package kr.hkit.powerjava.chapter22.work2;

public class Department {
private int deptNo;
private String deptName;
private int floor;
public int getDeptNo() {
	return deptNo;
}
public void setDeptNo(int deptNo) {
	this.deptNo = deptNo;
}
public String getDeptName() {
	return deptName;
}
public void setDeptName(String deptName) {
	this.deptName = deptName;
}
public int getFloor() {
	return floor;
}
public void setFloor(int floor) {
	this.floor = floor;
}
@Override
public boolean equals(Object obj) {
	Department dep = (Department)obj;
	return floor == dep.floor; 
	
}

}
